(function(exports){ 
    
    function UjsCSSGetter(){}
    
    /**
     * 获取核心CSS路径。
     * @return Array.
     */
    UjsCSSGetter.prototype.getBaseCSS = function(){
        return [
          //'jqueryPlugins/base/jquery-ui.css',
            'base/reset.css',
            'base/global.css',
            'base/form.css',
            'base/scrollbar.css',
            'base/bubble.css',
            'base/apprise.css',
            'base/mask.css',
            'base/HeavyButton.css',
            'base/Dialog.css'
        ];
    };
    
    UjsCSSGetter.prototype.getSubjectsCSS = function(){
        return [            
            'subjects/draw/DrawPallet.css'
        ];
    };
    
    UjsCSSGetter.prototype.getJQueryPluginsCSS = function(){
        return [
            'jqueryPlugins/form/jquery.selectBox.css',
            'jqueryPlugins/form/jquery.stringList.css',
            'jqueryPlugins/form/jquery.singleImgUploader.css',
            'jqueryPlugins/form/jquery.progressBar.css',
            'jqueryPlugins/form/jquery.searchable.css',
            'jqueryPlugins/form/jquery.iPhoneSwitch.css',
            'jqueryPlugins/form/jquery.passwordStrength.css',
            'jqueryPlugins/form/jquery.editInplace.css',
            'jqueryPlugins/form/jquery.autoCompleteBox.css',            
                        
            'jqueryPlugins/layout/jquery.accordion.css',
            'jqueryPlugins/layout/jquery.tabControl.css',
            'jqueryPlugins/layout/jquery.grouper.css',
            'jqueryPlugins/layout/jquery.listView.css',
            
            'jqueryPlugins/jsTree/jquery.jsTree.css',
            'jqueryPlugins/jsTree/jquery.treeNodeSelector.css',
            
            'jqueryPlugins/dd/jquery.resizable.css',
            
            'jqueryPlugins/nav/jquery.ddActionMenu.css',
            'jqueryPlugins/nav/jquery.contextMenu.css',
            'jqueryPlugins/nav/jquery.toolbar.css',
            
            'jqueryPlugins/misc/jquery.wysiwyg.css',
            'jqueryPlugins/misc/jquery.jsonViewer.css',
            'jqueryPlugins/misc/jquery.tooltip.css',
            
            'jqueryPlugins/table/jquery.paginate.css',
            'jqueryPlugins/table/jquery.table.css'
        ];
    };
    
    //---------------------------------------------------------------------------
    
    UjsCSSGetter.prototype.getCSS = function(resConfig){
        var csses = this.getBaseCSS();       
        if(resConfig['component'] === true){
            csses = csses.concat(this.getSubjectsCSS());
        }        
        if(resConfig['jqueryPlugins'] === true){
            csses = csses.concat(this.getJQueryPluginsCSS()); 
        }
        return csses;
    };
    
    //---------------------------------------------------------------------------
       
    exports.getResPath = function(resConfig){        
        var cssGetter = new UjsCSSGetter();      
        return cssGetter.getCSS(resConfig || {});
    };
})(typeof exports !== "undefined" ? exports : this.ujs);